/*
 * The MIT License (MIT)
 * Copyright (C) 2024 Huawei Device Co., Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 */

use napi::{HiLogLabel, LogType};
use napi_derive::napi;

mod array;
mod r#async;
mod bigint;
mod callback;
mod class;
mod class_factory;
mod date;
mod either;
mod r#enum;
mod env;
mod error;
mod external;
mod fn_strict;
mod fn_ts_override;
mod function;
mod hilog;
mod js_mod;
mod map;
mod nullable;
mod number;
mod object;
mod promise;
mod rust6arkts;
mod serde;
mod string;
mod task;
mod threadsafe_function;
mod typed_array;

// Explicit register rust module
napi::ohos_module_register!("arkts_napi_sdv");

#[napi]
/// This is a const
pub const DEFAULT_COST: u32 = 12;

pub const TEST_LOG_LABEL: HiLogLabel = HiLogLabel {
  log_type: LogType::LogApp,
  domain: 1,
  tag: "RustNapiTestCase",
  priv_flag: false,
};
